import MyRequest from '@/utils/request/index'
/**
 * 获取收藏分页数据
 * @param {Integer} collectType - 收藏类型，1为商品，2为专题，3为品牌
 * @returns
 */

class Member {
  findCollect = ({ page = 1, pageSize = 10, collectType = 1 }) => {
    return MyRequest.get({
      url: '/member/collect',
      params: { page, pageSize, collectType }
    })
  }
  findFootprint = ({ page = 1, pageSize = 10, collectType = 1 }) => {
    return MyRequest.get({
      url: '/member/footprint',
      params: { page, pageSize, collectType }
    })
  }
}

export default new Member()
